package day8;

/**
 * @author oldliu
 * @since 1.0
 */
public class Bus {
    String line;
    String from,to;

    public Bus(String line, String from, String to) {
        this.line = line;
        this.from = from;
        this.to = to;
    }

    public void work(){
        System.out.println(line+"路公交车，从"+from+"开往"
        +to+"，请往里面走一走。。。");
    }
}
